﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Items
{
    /// <summary>
    /// 商品sku类别
    /// </summary>
    public class ItemSkuCategory : FullAuditedEntity<long>
    {
        public virtual ICollection<ItemSku> ItemSkus { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public long ItemId { get; set; }
        [ForeignKey("ItemId")]
        public virtual Item Item { get; set; }
        /// <summary>
        /// 类别名称
        /// </summary>
        [Required, MaxLength(20)]
        public string Name { get; set; }
    }
}
